Modification start date
[BattleCats.git] / Assets / EZ Camera Shake / Demo / Sample Scripts / ShakeOnKeyPress.cs
blob6f84af73dfe0b6866f14fce6ecaf4852238c703c
1 using UnityEngine;
2 using EZCameraShake;
4 public class ShakeOnKeyPress : MonoBehaviour
6 public float Magnitude = 2f;
7 public float Roughness = 10f;
8 public float FadeOutTime = 5f;
10 void Update ()
12 if(Input.GetKeyDown(KeyCode.LeftShift))
13 CameraShaker.Instance.ShakeOnce(Magnitude, Roughness, 0, FadeOutTime);